package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 客户设备授权表
 * @TableName res_dev_authority
 */
@TableName(value ="res_dev_authority")
@Data
public class ResDevAuthority implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id", fill = FieldFill.INSERT)
    private Long dataId;

    /**
     * 课程开始日期
     */
    @TableField(value = "valid_begin")
    private LocalDate validBegin;

    /**
     * 课程结束日期
     */
    @TableField(value = "valid_end")
    private LocalDate validEnd;

    /**
     * 有效时长
     */
    @TableField(value = "valid_days")
    private Integer validDays;

    /**
     * 设备组id
     */
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
